package es.udc.pfc.davidparedes.model.admin;

import java.util.Calendar;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import es.udc.pfc.davidparedes.model.store.Store;
import es.udc.pfc.davidparedes.model.userprofile.UserProfile;

@Entity
@DiscriminatorValue("Admin")
public class Admin extends UserProfile {
	
	private Calendar deletionDate;
	
	public Admin() {
	}
	
	public Admin(String loginName, String encryptedPassword,
			String firstName, String lastName, String email, String nif,
			Store store) {
		super(loginName, encryptedPassword, firstName, lastName, email, nif, store);
	}
	
	@Temporal(TemporalType.TIMESTAMP)
	public Calendar getDeletionDate() {
		return deletionDate;
	}
	
	public void setDeletionDate(Calendar deletionDate) {
		this.deletionDate = deletionDate;
	}
	
}
